<{if is_object($itemO)}> 
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<{$xoops_langcode}>" lang="<{$xoops_langcode}>">
<head>
<meta http-equiv="content-type" content="text/html; charset=<{$xoops_charset}>" />
<meta http-equiv="content-language" content="<{$xoops_langcode}>" />
<title><{$sitename}> <{$lang_imgmanager}></title>
<script type="text/javascript">
<!--//
function appendCode(addCode) {
	var targetDom = window.opener.xoopsGetElementById('<{$target}>');
	if (targetDom.createTextRange && targetDom.caretPos){
  		var caretPos = targetDom.caretPos;
		caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) 
== ' ' ? addCode + ' ' : addCode;  
	} else if (targetDom.getSelection && targetDom.caretPos){
		var caretPos = targetDom.caretPos;
		caretPos.text = caretPos.text.charat(caretPos.text.length - 1)  
== ' ' ? addCode + ' ' : addCode;
	} else {
		targetDom.value = targetDom.value + addCode;
  	}
	window.close();
	return;
}
//-->
</script>
<style type="text/css" media="all">
body {margin: 0;}
img {border: 0;}
table {width: 100%; margin: 0;}
a:link {color: #3a76d6; font-weight: bold; background-color: transparent;}
a:visited {color: #9eb2d6; font-weight: bold; background-color: transparent;}
a:hover {color: #e18a00; background-color: transparent;}
table td {background-color: white; font-size: 12px; padding: 0; border-width: 0; vertical-align: top; font-family: Verdana, Arial, Helvetica, sans-serif;}
table#imagenav td {vertical-align: bottom; padding: 5px;}
table#imagemain td {border-right: 1px solid silver; border-bottom: 1px solid silver; padding: 5px; vertical-align: middle;}
table#imagemain th {border: 0; background-color: #2F5376; color:white; font-size: 12px; padding: 5px; vertical-align: top; text-align:center; font-family: Verdana, Arial, Helvetica, sans-serif;}
table#header td {width: 100%; background-color: #2F5376; vertical-align: middle;}
table#header td#headerbar {border-bottom: 1px solid silver; background-color: #dddddd;}
div#pagenav {text-align:center;}
div#footer {text-align:right; padding: 5px;}
</style>
</head>

<body onload="window.resizeTo(<{$xsize}>, <{$ysize}>);">
<{if $xoopsimage2items|@count}>
<form action="goimagemanager.php?op=update&id=<{$itemO->getVar('id')}>&handler=<{$smarty.get.handler}>&module=<{$smarty.get.module}>" method=post>
  <table cellspacing="0" id="imagemain">
<tr><th><{$smarty.const._DELETE}></th><th><{$smarty.const._MD_neosystem_ORDER}></th><th></th></tr>
<{foreach item=xoopsimage2itemO from=$xoopsimage2items}>
<{assign var=xoopsimage2item_id value=$xoopsimage2itemO->getVar("xoopsimage_id")}>
<{assign var=xoopsimageO value=$xoopsimageH->get($xoopsimage2item_id)}>
<{cycle values="even,odd" assign=class}>
<{if file_exists($smarty.const.XOOPS_UPLOAD_PATH|cat:"/"|cat:"thmb_"|cat:$xoopsimageO->getVar("image_name"))}>

<tr>

<td class=<{$class}>><input type=checkbox name=deleteimages[] value=<{$xoopsimage2itemO->getVar("id")}>></td>
<td class=<{$class}>><input  name=weights[<{$xoopsimage2itemO->getVar('id')}>] value=<{$xoopsimage2itemO->getVar("weight")}>></td>
<td class=<{$class}>><img src="<{$smarty.const.XOOPS_UPLOAD_URL}>/thmb_<{$xoopsimageO->getVar("image_name")}>"></td>
<td class=<{$class}>><input  name=titles[<{$xoopsimage2itemO->getVar('id')}>] value=<{$xoopsimage2itemO->getVar("title")}>></td>

</tr>
<{/if}>
<{/foreach}>

</table>
<input type=submit>
</form>
<{else}>
<{/if}>
<table>
<tr><td align=center><{$smarty.const._MD_neosystem_NOIMAGES}></td></tr>
</table>
<!-- START: photosform-->
<form action="goimagemanager.php?op=upload&id=<{$itemO->getVar('id')}>&handler=<{$smarty.get.handler}>&module=<{$smarty.get.module}>" method=post enctype="multipart/form-data">
<table>
<tbody>

<input type='hidden' name='MAX_FILE_SIZE' value='200000'>
<tr><th colspan="2"><{$smarty.const._MD_neosystem_ITEMPHOTOS_ADD}></th></tr>
<tr align="left" valign="top">
<td class="head"></td>
<td class="even"><input name="item_photo[]" id="item_photo" size="50" maxlength="255" value="" type="file"></td>
</tr>
</tbody>
</table>
<!-- END: photosform-->
<input type=submit>
</form>
</body>
</html>
<{/if}> 